package com.vanrui.pcp.autocode.model.entry;

import java.util.List;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElementWrapper;
import javax.xml.bind.annotation.XmlRootElement;

@XmlAccessorType(XmlAccessType.FIELD)  
@XmlRootElement(name = "config")
public class AutoCodeXml {
	
	@XmlElement(name ="freemarker")
	private String version;
	
	@XmlElementWrapper
	@XmlElement(name = "typeMapping")
	private List<TypeMapping> typeMappings;
	
	@XmlElementWrapper  
	@XmlElement(name="macro")
	private List<Macro> macros;
	
	@XmlElement
	private TemplateDir templateDir;
	
	@XmlElementWrapper
	@XmlElement(name="package")
	private List<Package> packages;
	
	@XmlElement
	private String projectPath;

	@XmlElement
	private Jdbc jdbc;
	
	@XmlElementWrapper
	@XmlElement(name="tableName")
	private List<Table> tables;

	public String getVersion() {
		return version;
	}

	public void setVersion(String version) {
		this.version = version;
	}

	public List<TypeMapping> getTypeMappings() {
		return typeMappings;
	}

	public void setTypeMappings(List<TypeMapping> typeMappings) {
		this.typeMappings = typeMappings;
	}

	public List<Macro> getMacros() {
		return macros;
	}

	public void setMacros(List<Macro> macros) {
		this.macros = macros;
	}

	public TemplateDir getTemplateDir() {
		return templateDir;
	}

	public void setTemplateDir(TemplateDir templateDir) {
		this.templateDir = templateDir;
	}

	public List<Package> getPackages() {
		return packages;
	}

	public void setPackages(List<Package> packages) {
		this.packages = packages;
	}

	public Jdbc getJdbc() {
		return jdbc;
	}

	public void setJdbc(Jdbc jdbc) {
		this.jdbc = jdbc;
	}

	public List<Table> getTables() {
		return tables;
	}

	public void setTables(List<Table> tables) {
		this.tables = tables;
	}

	public String getProjectPath() {
		return projectPath;
	}

	public void setProjectPath(String projectPath) {
		this.projectPath = projectPath;
	}

	

}
